package entity.field;

import java.util.List;
import java.util.Date;

public class Field {

	/**
	 * 序列化
	 */
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	private Integer id;

	/**
	 * 表单主键
	 */
	private Integer formId;

	/**
	 * 属性名称
	 */
	private String name;

	/**
	 * 字段标记（字段名称）
	 */
	private String code;

	/**
	 * 属性类型 1文本
	 */
	private Integer fieldType;

	/**
	 * 控件 1文本框
	 */
	private Integer controls;

	/**
	 * 映射到值表的名字
	 */
	private String mapper;

	/**
	 * 字典code（用于单选、多选、下拉）
	 */
	private String classCode;

	/**
	 * 排序
	 */
	private Integer sort;

	/**
	 * 创建者
	 */
	private Integer creator;

	/**
	 * 创建时间
	 */
	private Date createTime;

	/**
	 * 修改者
	 */
	private Integer operator;

	/**
	 * 修改时间
	 */
	private Date updateTime;

	/**
	 * 是否删除 0：没有删除 1：删除了
	 */
	private Integer deleted;

	/**
	 * 版本号
	 */
	private Integer version;

	public void setId(Integer id) { 
		this.id = id;
	}
	
	public Integer getId() { 
		return id;
	}

	public void setFormId(Integer formId) { 
		this.formId = formId;
	}
	
	public Integer getFormId() { 
		return formId;
	}

	public void setName(String name) { 
		this.name = name;
	}
	
	public String getName() { 
		return name;
	}

	public void setCode(String code) { 
		this.code = code;
	}
	
	public String getCode() { 
		return code;
	}

	public void setFieldType(Integer fieldType) { 
		this.fieldType = fieldType;
	}
	
	public Integer getFieldType() { 
		return fieldType;
	}

	public void setControls(Integer controls) { 
		this.controls = controls;
	}
	
	public Integer getControls() { 
		return controls;
	}

	public void setMapper(String mapper) { 
		this.mapper = mapper;
	}
	
	public String getMapper() { 
		return mapper;
	}

	public void setClassCode(String classCode) { 
		this.classCode = classCode;
	}
	
	public String getClassCode() { 
		return classCode;
	}

	public void setSort(Integer sort) { 
		this.sort = sort;
	}
	
	public Integer getSort() { 
		return sort;
	}

	public void setCreator(Integer creator) { 
		this.creator = creator;
	}
	
	public Integer getCreator() { 
		return creator;
	}

	public void setCreateTime(Date createTime) { 
		this.createTime = createTime;
	}
	
	public Date getCreateTime() { 
		return createTime;
	}

	public void setOperator(Integer operator) { 
		this.operator = operator;
	}
	
	public Integer getOperator() { 
		return operator;
	}

	public void setUpdateTime(Date updateTime) { 
		this.updateTime = updateTime;
	}
	
	public Date getUpdateTime() { 
		return updateTime;
	}

	public void setDeleted(Integer deleted) { 
		this.deleted = deleted;
	}
	
	public Integer getDeleted() { 
		return deleted;
	}

	public void setVersion(Integer version) { 
		this.version = version;
	}
	
	public Integer getVersion() { 
		return version;
	}

	@Override
	public String toString() {
		return "FieldEntity {" +
			"id = " + id + 
			", formId = " + formId + 
			", name = " + name + 
			", code = " + code + 
			", fieldType = " + fieldType + 
			", controls = " + controls + 
			", mapper = " + mapper + 
			", classCode = " + classCode + 
			", sort = " + sort + 
			", creator = " + creator + 
			", createTime = " + createTime + 
			", operator = " + operator + 
			", updateTime = " + updateTime + 
			", deleted = " + deleted + 
			", version = " + version + 
			"} " + super.toString();
	}
}
